package nowCoder;

import java.math.BigInteger;
import java.util.Scanner;

public class HJ12 {
    /*
            描述
        接受一个只包含小写字母的字符串，然后输出该字符串反转后的字符串。（字符串长度不超过1000）

        输入描述：
        输入一行，为一个只包含小写字母的字符串。

        输出描述：
        输出该字符串反转后的字符串。
     */
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        StringBuilder s = new StringBuilder(in.nextLine());
        System.out.println(s.reverse());
    }
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String x = in.nextLine();
        StringBuilder sb = new StringBuilder();
        for(int i = x.length()-1; i >= 0; i--){
            sb.append(x.charAt(i));
        }
        System.out.print(sb.toString());
    }
//        BigInteger bigInteger = new BigInteger("a1d9cf12bf586d084b1e1d5ab06d80e0", 16);
//BigInteger bigInteger = new BigInteger("ffffffffffffffffffffffffffffffff", 16);
//        System.out.println(bigInteger);
//    BigInteger size = new BigInteger("4294967296");
//        for (int i = 0; i < 10; i++) {
//        BigInteger remainder = bigInteger.remainder(size);
//        System.out.println("% "+remainder);
//        bigInteger = bigInteger.divide(size);
//        System.out.println(bigInteger);
//    }
}
